package cn.cvs.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("suser")
public class UserController_shiro {

    @ResponseBody
    @RequestMapping("/list")
    public String user_list(){
        return "user/list";
    }
    @ResponseBody
    @RequestMapping("/add")
    public String user_add(){
        return "user/add";
    }


    @ResponseBody
    @RequestMapping("/edit")
    @RequiresPermissions(value = "useredit")
    public String user_edit(){
        return "user/edit";
    }

    @ResponseBody
    @RequestMapping("/del")
    public String user_del(){
        return "user/del";
    }
}
